ja: read large operators in Japanese word order - #726
Merged
Conversation
This was referenced Aug 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #725 on the
jabranch. Same class of problem as the brackets PR: the English preposition order was kept, and the Japanese equivalents are postpositions.Sums, products and integrals
bigop-both(a large operator with both limits) read the sum from 1 to n of i aswhich places each preposition where English puts it. Japanese marks a range with the postpositions から … まで, so the limits come first:
This is item 6 of Yamaguchi, Kawane and Sawazaki (1996), which gives the reading for a summation as サム i イコール 1 から n まで(オブ)… and for a definite integral as インテグラル a から b まで(オブ)….
The trailing connective becomes オブ rather than の. 「n までの i」 is grammatical Japanese, but it means "i, from 1 to n" — の attaches the operand to the range instead of introducing the summand, so the listener hears the wrong parse. Item 3 of the same paper is why the borrowed オブ is the right form here (the paper introduces オブ and オーバー as loan prepositions for exactly this purpose).
bigop-under(lower limit only) used 分の for "over". 分の is the fraction word — 「A 分の B」 is B/A — so a sum with a single limit was read as if a fraction were involved. It is now にわたる, which is the word this repo's owndefinitions.yamlalready uses for thesumintent (function=総和 | にわたる | から,まで).Checks
audit-translations ja: unchanged. Rule differences 28 and untranslated 3683, both before and after. I measured the baseline on a detached checkout ofjaat 544e7fb rather than reusing an earlier number, sincejamoved while I was working.summation_lower_limit_onlyandproduct_with_limits.Deliberately not changed
The operator names themselves — 総和 for ∑, 積分 for ∫, プロダクト for ∏ — are left alone. They are correct Japanese, and the cited paper's appendix offers サム / 大文字シグマ for ∑ as alternatives rather than corrections.
The interval rules (
intervalsinSharedRules/general.yamlandClearSpeak-intervals) have the same から … に shape and need the same fix, but they also need decisions this PR does not: 間隔 should be 区間 (間隔 means spacing, not a mathematical interval), and the "not including" wording currently reads コメントはありません — "there are no comments", from translating the bare word "not". I would rather send that separately.